qui(
    function (require, exports, module) {
        VOD.Tpl = {
            AutoSegTpl : function (options) {
                var tpl = '<tr>'
                    + '  <td >'
                    + '	<table class="inner-table">'
                    + '		<tr>'
                    + '			<td rowspan="2" style="width:40px;">'
                    + '			<input type="checkbox" name="id" value="{{id}}" style="width:15px;margin:0;padding:0;" action-name="checked-seg-id"/>'
                    + '			<span class="cblue">{{id}}.</span>'
                    + '			</td>'
                    + '			<td><span>入点</span><input type="text" value="{{sTime}}" name="auto.sTime"/></td>'
                    + '			<td><span>出点</span><input type="text" value="{{eTime}}" name="auto.eTime"/></td>'
                    + '			<td><span>封面</span><input type="text" value="{{imageId}}" name="auto.imageId"/></td>'
                    + '			<td><span>频道</span><span class="select-container"><select class="cate" style="" name="auto.categoryId">{{channel}}</select></span></td>' //<input type="text" value="9"/>
                    + '			<td style="position:relative"><span>专辑</span><input type="text" class="albumName" name="auto.albumName" />'

                    + '	<input type="hidden" name="auto.albumId" />'
                    + '  <div class="cn_hide2 album-pop"></div>'

                    + '</td>'
                    + '		</tr>'
                    + '		<tr class="modify-space">'
                    + '			<td colspan="3"><span>标题</span><input type="text" style="width:221px;" value="" name="auto.videoName"/><input value="" type="hidden" name="videoId"/></td>'
                    + '			<td colspan="3" style="text-align:right;"><a class="cblue"  href="javascript:;" action-name="sub-seg">提交拆条</a><a style="margin-left:15px;" class="cred"  href="javascript:;" action-name="sub-ad">提交广告</a></td>'
                    + '		</tr>'
                    + '	</table>'
                    + '	 </td>'
                    + '</tr>';

                return tpl.replace(/{{((?:(?!}})[\s\S])+)}}/g, function (k, key) {
                    return options[key] || "";
                });
            },
            MergeSegTpl : function (options) {
                var tpl = '<tr>'
                    + '    <td >'
                    + '	<table class="inner-table">'
                    + '		<tr>'
                    + '			<td rowspan="3" style="vertical-align:top;width:20px;">'
                    + '				<span class="cblue">{{id}}.</span>'
                    + '				</td>'
                    + '			<td colspan="4"><span>合并范围</span><input type="text" style="width:376px;" value="{{range}}"/><input type="hidden" value="{{mergData}}" name="merg.mergData" />'
                    + '<input type="hidden" value="{{sTime}}" name="merg.sTime"/><input type="hidden" value="{{eTime}}" name="merg.eTime"/></td>'
                    + '		</tr>'
                    + '		<tr class="modify-space">'
                    + '			<td><span>封面</span><input type="text" name="merg.imageId" value="{{imageId}}"/></td>'
                    + '			<td><span>频道</span><span class="select-container"><select class="cate" style="" data-id="{{sTime}}" name="merg.categoryId">{{channel}}</select></span></td>'
                    + '			<td style="position:relative"><span>专辑</span><input type="text"  class="albumName" value="{{albumName}}" name="merg.albumName" />'

                    + '	<input type="hidden" value="{{albumId}}" name="merg.albumId" />'
                    + '  <div class="cn_hide2 album-pop"></div>'

                    + '</td>'
                    + '			<td><span>标题</span><input type="text" name="auto.videoName" value="{{videoName}}" style="width:139px;"/></td>'
                    + '		</tr>'
                    + '		<tr class="modify-space">'
                    + '			<td colspan="4" class="cblue"><a href="javascript:;" action-name="sub-seg">提交拆条</a><a  href="javascript:;" style="margin-left:20px" action-name="sub-ad" class="cred">提交广告</a></td>'
                    + '		</tr>'
                    + '	</table>'
                    + '	 </td>'
                    + '</tr>';
                return tpl.replace(/{{((?:(?!}})[\s\S])+)}}/g, function (k, key) {
                    return options[key] || "";
                });
            },

//            // 拆分条广告列表
//            adListTpl : function (options) {
//                var tpl = '<tr class="scorll-to-frame" frame-index="{{index}}"><td>'
//                    + '{{index}}</td>'
//                    + '<td>{{sTime}}</td>'
//                    + '<td>{{eTime}}</td>'
//                    + '<td><div style="padding:0;margin:0;width:124px;overflow:hidden;white-space: nowrap;" title="{{videoName}}">{{videoName}}</div></td>'
//                    + '<td>已生成</td>'
//                    + '<td><button class="btn btn-info btn-sm" id="del-{{index}}" onclick="if( confirm(\'确认要删除吗?\')){$(this).parent().parent().remove();delOne(\'删除\',\'{{sTime}}\',\'{{eTime}}\');}">删除</button>'
//                    + '<a style="margin-left:5px;" onClick="reviewOne(\'{{sTime}}\',\'{{eTime}}\',\'删除\');" class="btn btn-success btn-sm">预览</a><a style="margin-left:5px;" onClick="fromLIstJump(\'{{sTime}}\');" class="btn btn-success btn-sm">跳转</a>'
//                    + '</td></tr>';
//
//                return tpl.replace(/{{((?:(?!}})[\s\S])+)}}/g, function (k, key) {
//                    return options[key] || "";
//                });
//            },

//            // 拆分条拆条列表
//            seqListTpl : function (options) {
//                var tpl = '<tr class="scorll-to-frame" frame-index="{{index}}"><td>'
//                    + '{{index}}</td>'
//                    + '<td>{{sTime}}</td>'
//                    + '<td>{{eTime}}</td>'
//                    + '<td><div style="padding:0;margin:0;width:124px;overflow:hidden;white-space: nowrap;" title="{{videoName}}">{{videoName}}</div></td>'
//                    + '<td>{{categoryId}}</td>'
//                    + '<td>{{albumName}}</td>'
//                    + '<td><div style="padding:0;margin:0;width:75px;overflow:hidden;white-space: nowrap;" title="{{imageId}}">{{imageId}}</div></td>'
//                    + '<td>已生成</td>'
//                    + '<td><button class="btn btn-info btn-sm" id="del-{{index}}" onclick="if( confirm(\'确认要删除吗?\')){$(this).parent().parent().remove();delOne(\'打点\',\'{{sTime}}\',\'{{eTime}}\');}">删除</button>'
//                    + '<a style="margin-left:5px;" onClick="reviewOne(\'{{sTime}}\',\'{{eTime}}\',\'打点\');" class="btn btn-success btn-sm">预览</a><a style="margin-left:5px;" onClick="fromLIstJump(\'{{sTime}}\');" class="btn btn-success btn-sm">跳转</a>'
//                    + '</td></tr>';
//                return tpl.replace(/{{((?:(?!}})[\s\S])+)}}/g, function (k, key) {
//                    return options[key] || "";
//                });
//            }
        };

    }
);